try:
   a = 1 / 0
except ZeroDivisionError as e:
    print("除数不能为0",e)

except ArithmeticError:
    print("数学错误")
except:
    print("未知错误")
else:
    print("没有异常")
finally:
    print("程序结束")
